package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "types_compositions")
public class TypesCompositionsModel
{
    private List<TypesCompositionModel> typesCompositionModels = new ArrayList<TypesCompositionModel>();

    @XmlElement(name = "types_composition")
    public List<TypesCompositionModel> getTypesCompositionModels()
    {
        return typesCompositionModels;
    }

    public void setTypesCompositionModels(List<TypesCompositionModel> typesCompositionModels)
    {
        this.typesCompositionModels = typesCompositionModels;
    }

    public void addTypesComposition(TypesCompositionModel compositionModel)
    {
        typesCompositionModels.add(compositionModel);
    }
}
